package Observer

import "fmt"

type IObserver interface {
	Update(message *Message, notifier *Notifier)
}

type Observer struct {
	ObserverName string
	IObserver
}

func (o Observer) Update(message *Message, notifier *Notifier) {
	fmt.Printf("%s收到%s发送的消息：%s\n", o.ObserverName, notifier.NotifierName, message.Content)
}
